<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------
namespace addon\mall\logic;
use app\common\logic\LogicBase;
use \tpfcore\Core;

class GoodsStorage extends LogicBase
{
	public function saveGoodsStorageALL($data=[]){
		$result = Core::loadAddonModel("GoodsStorage")->saveAll($data);
        if($result){
          return [0,"success"];
        }
        return [40048,"保存失败"];
	}
	public function delGoodsStorageALL($data=[]){
		return self::deleteObject(['goods_id'=>$data[0]['goods_id']],true);
	}
	public function getGoodsStorage($data=[]){
		return self::getList($data);
	}
}